class ConnectedDeviceEntity {
  int id;
  String address;
  String name;
  int lastConnectTimeStamp;

  String content1;
  String content2;

  ConnectedDeviceEntity(
      {this.id = 0,
      required this.address,
      required this.name,
      this.lastConnectTimeStamp = 0,
      this.content1 = "",
      this.content2 = ""});

  // 将MyData对象转换为Map
  Map<String, dynamic> toMap() {
    return {
      'id': id,
      'address': address,
      'name': name,
      'lastConnectTimeStamp': lastConnectTimeStamp,
      'content1': content1,
      'content2': content2,
    };
  }
}
